<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
        <meta charset="utf-8">
        <title>大屏系统前端展示</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="keywords" content="大数据" />
        <meta name="description" content="大数据" />
        <link rel="stylesheet" type="text/css" href="/fectui/fect/fect-layer.css">
        <link rel="stylesheet" type="text/css" href="/static/css/main.css">
        <style media="screen">
        @media (max-width: 2200px) {
            .imglist img{
                width: calc(25% - 24px);
                height: 260px;
                margin: 12px;
                cursor: pointer;
            }
        }
        @media (max-width: 1400px) {
            .imglist img{
                width: calc(33% - 24px);
                height: 260px;
                margin: 12px;
                cursor: pointer;
            }
        }
        @media (max-width: 700px) {
            .imglist img{
                width: calc(50% - 24px);
                height: 260px;
                margin: 12px;
                cursor: pointer;
            }
        }
        @media (max-width: 480px) {
            .imglist img{
                width: calc(100% - 24px);
                height: 260px;
                margin: 12px;
                cursor: pointer;
            }
        }
        </style>
    </head>
    <body>
        <div class="imglist" id="imglist">

        </div>
        <!---以下代码和演示无关，请自行删除-->
        <div class="btnbox">
            <a class="buybtn btn1" href="#">我要去购买</a>
            <a class="buybtn btn2" href="#">QQ咨询</a>
        </div>

        <div class="mask"></div>

        <!-- 右侧弹窗 -->
        <div class="flayer" id="flayer-a">
            <div class="title">
                <i class="Jclose">&#xe601;</i>
                <span>联系我~</span>
                <button class="Joperate">确定</button>
            </div>
            <div class="Jcontent">
                QQ：1198551705<br>
                价格：5元一个，20元全部<br>
                支持：接口数据对接<br>
            </div>
        </div>
    </body>
<script src="//mirror.fe80.cn/layui/2.6.8/layui.js"></script>
<script src="/static/js/global.js"></script>
<script>
var path = '/uploads/'+(new Date()).getFullYear()+'/';
var filedomain = domain.upyun;
var api = domain.api + '/tools/sdk/upyun.html';
var push = {method:'read',read:path};

layui.use(['form'],function(){
    var $ = layui.$;
    $.post(api,push,function(res){
        console.log(res);
        renderList(res.read.files,push.read);
    });
})


function renderList(il,path = ''){
    var d = document.getElementById('imglist');
    var _html = '';
    for (var i = 0; i < il.length; i++) {
        if(il[i].type == 'N' && il[i].size > 2047){
            _html += '<img src="'+ filedomain + path + il[i].name +'">';
        }
    }
    d.innerHTML = _html;
}
</script>

<script type="text/javascript" src="//mirror.fe80.cn/jquery/3.6.1/jquery.min.js"></script>
<script type="text/javascript" src="/fectui/fect/fect-layer.js"></script>
<link rel="stylesheet" href="https://mirror.fe80.cn/viewerjs/1.10.1/viewer.min.css">
<script type="text/javascript" src="https://mirror.fe80.cn/viewerjs/1.10.1/viewer.min.js"></script>
<script type="text/javascript">
    // 打开窗口
    $('#imglist').on('click','img',function(){
        $("#imglist").viewer({"title":0});
    });
    // 打开窗口
    $('.buybtn').on('click',function(){
        flayer.MoveInto($('#flayer-a'));
    });
</script>
</html>
<style>
.btnbox {
    position: fixed;
    bottom: 120px;
    width: 100%;
    text-align: center;
    z-index: 1000;
}

.btnbox .buybtn {
    margin: 0 3px;
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    padding: 8px 25px;
    text-shadow: -1px -1px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
}

.btnbox .btn1 {
    background: linear-gradient(60deg, #26c6da, #00acc1);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14), 0 7px 10px -5px rgba(0, 188, 212, .4);
}

.btnbox .btn2 {
    background: linear-gradient(60deg, #66bb6a, #43a047);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14), 0 7px 10px -5px rgba(76, 175, 80, .4);
}

.btnbox .buybtn:hover {
    background: #47c8ff
}

.buybtn{
    text-decoration: none;
}
</style>
